<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
</head>
<body>
   <s:a action="add">添加</s:a>
	<table>
		<tr>
			<th>编号</th>
			<th>预期目标</th>
			<th>预期时间</th>
			<th>操作</th>
		</tr>
		<s:iterator value="expectList" var="exp">
			<tr>
				<td><s:property value="#exp.expId"/></td>
				<td><s:property value="#exp.expPlan"/></td>
				<td><s:property value="#exp.expData"/></td>
				<td>
				 	<s:a onclick="return confirm('确定要删除吗?');" action="delete.action?exp.expId=%{#exp.expId}" namespace="/Expect">删除</s:a>
					<s:a action="update.action?exp.expId=%{#exp.expId}" namespace="/Expect">修改</s:a>
				</td>
			</tr>
		</s:iterator>
	</table>
</body>
</html>